<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <cpn :c-info="info"></cpn>
    </div>
    <template id="cpn">
        <div>
            <ul>
                <li v-for="(item, index) in cInfo">{{index}} : {{item}}</li>
            </ul>
            <div>{{cInfo}}</div>
        </div>
        
    </template>
    <script src="../vue.js"></script>
    <script>
        const cpn = {
            template: '#cpn',
            props: {
                cInfo: {
                    type: Object,
                    default() {
                        return {}
                    }
                }
            }
        }
        const app = new Vue({
            el: '#app',
            data: {
                message: 'hello',
                movies: ['aaa', 'bbb', 'ccc'],
                info: {
                    age: 18,
                    sex: 'male',
                    height: 1.88
                }
            },
            components: {
                cpn
            }

        })
    </script>
</body>
</html>